﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 活动报名信息表
    /// </summary>
    [Table("T_Activity_Registration")]
    public class ActivityRegistration:BaseEntity
    {
        /// <summary>
        /// 活动Id
        /// </summary>
        [ForeignKey(nameof(activityId))]
        public int ActivityID { get; set; }
        public ActivityRelease activityId{ get; set; }
        /// <summary>
        /// 报名人Id
        /// </summary>
        public int? UserId { get; set; }
        /// <summary>
        /// 报名人名字
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string UserName { get; set; }
        /// <summary>
        /// 参与人数
        /// </summary>
        public int? PartakeCount { get; set; }
        /// <summary>
        /// 报名途径
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string PartakeRole { get; set; }

        [Column(TypeName = "varchar"), StringLength(13)]
        public string Phone { get; set; }
    }
}
